<!DOCTYPE html>
<html lang='zh-CN'>
<head>
    <meta charset="utf-8">
    <meta name="referrer" content="no-referrer" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>商品管理(全国)</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/materialdesignicons.min.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.min.css" rel="stylesheet">
    <link href="css/tg.tree.css" rel="stylesheet">
    <link href="js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid p-t-15">

    <h3>请点击下方输入框选择</h3>
    <input type="text" id="test" />

</div>
</body>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="js/zero2one/zero2one.version.js"></script>
<script type="text/javascript" src="js/zero2one/zero2one.core.js"></script>
<!-- bootstrap表单验证插件 -->
<script type="text/javascript" src="js/bootstrapvalidator/dist/js/bootstrapValidator.js"></script>
<!-- jquery-form表单提交插件 -->
<script type="text/javascript" src="js/jquery-form/jquery.form.js"></script>
<!-- bootstrap弹出框插件 -->
<script type="text/javascript" src="js/jquery.bootstrap.min.js"></script>
<!-- 表单填充插件 -->
<script type="text/javascript" src="js/jquery-form/jquery.formloader.js"></script>
<script type="text/javascript" src="js/zero2one/zero2one.goods.tree.js"></script>

<script type="text/javascript">

    var _data = [{
        value: 'shanghai',
        label: '上海',
        children: [{
            value: 'shanghaishi',
            label: '上海市',
            children: [{
                value: 'baoshan1',
                label: '宝山区saa发送飞洒发送'
            }, {
                value: 'fengxian1',
                label: '奉贤区'
            }, {
                value: 'putuo1',
                label: '普陀区'
            }, {
                value: 'hongkou1',
                label: '虹口区'
            }]
        }]
    }, {
        value: 'hunan',
        label: '湖南省',
        children: [{
            value: 'shaoyang',
            label: '邵阳市',
            children: [{
                value: 'baoshan2',
                label: '宝山区'
            }, {
                value: 'fengxian2',
                label: '奉贤区'
            }, {
                value: 'putuo2',
                label: '普陀区'
            }, {
                value: 'hongkou2',
                label: '虹口区'
            }]
        }, {
            value: 'hengyang',
            label: '衡阳市',
            children: [{
                value: 'baoshan3',
                label: '宝山区'
            }, {
                value: 'putuo3',
                label: '普陀区'
            }, {
                value: 'hongkou3',
                label: '虹口区'
            }]
        }]
    }, {
        value: 'sichuan',
        label: '四川省',
        children: [{
            value: 'leshanshi',
            label: '乐山市',
            children: [{
                value: 'baoshan4',
                label: '宝山区'
            }, {
                value: 'fengxian4',
                label: '奉贤区'
            }, {
                value: 'putuo4',
                label: '普陀区'
            }, {
                value: 'hongkou4',
                label: '虹口区'
            }]
        }]
    }, {
        value: 'beijing',
        label: '北京'
    }];

    $(function(){
        $('#test').zdCascader({
            data:_data
        });

        $('#test').val("四川省 / 乐山市 / 奉贤区");
    })

</script>

</html>
